﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HotelManager.Data_Transfer_Layer;
using HotelManager.Data_Access_Layer;

namespace HotelManager.Business_Logic_Layer
{
    class khachhangBLO
    {
        #region Variables
        private string error;
        private khachhangDAO DAO;
        #endregion

        public khachhangBLO()
        {
            DAO = new khachhangDAO();
            error = "";
        }

        public khachhangDTO[] get()
        {
            return DAO.get();
        }

        public khachhangDTO View_Detail(int kh_id)
        {
            return DAO.View_Detail(kh_id);
        }

        public khachhangDTO Find(string kh_ten)
        {
            return DAO.Find(kh_ten);
        }

        public void Delete(khachhangDTO obj)
        {
            DAO.Delete(obj);
        }

        public void Insert(khachhangDTO obj)
        {
            DAO.Insert(obj);
        }

        public void Update(khachhangDTO obj)
        {
            DAO.Update(obj);
        }
    }
}
